{**
 * index.tpl
 *
 * Copyright (c) 2003-2012 John Willinsky
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
 *
 * Journal index page.
 http://stackoverflow.com/questions/896724/how-to-open-a-new-window-on-form-submit
 *
 * $Id$
 *}

{strip}
{assign var="pageTitleTranslated" value=$siteTitle}

{include file="common/header.tpl"}

{/strip}

{if $journalDescription}
	<div>{$journalDescription}</div>
{/if}


{if $homepageImage}
<br />
<div id="homepageImage"><img src="{$publicFilesDir}/{$homepageImage.uploadName|escape:"url"}" width="{$homepageImage.width|escape}" height="{$homepageImage.height|escape}" {if $homepageImageAltText != ''}alt="{$homepageImageAltText|escape}"{else}alt="{translate key="common.journalHomepageImage.altText"}"{/if} /></div>
{/if}

{if $additionalHomeContent}
<br />
{$additionalHomeContent}
{/if}

<form method="post" target="_blank" id="formsubmit"  action="{$newurl}" onclick="window.open('{$newurl},'','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,status=no')">

<strong>C&#7853;p Nh&#7853;t ch&#7913;ng t&#7915;: </strong>
<strong>{$CN_Title}</strong>
{$newurl}
<br>

<strong>N&#259;m l&#224;m vi&#7879;c:</strong>
{assign var=thisyear value=$smarty.now|date_format:"%Y"}
{assign var=endYear value=$thisyear+20}
<select name = "xNam">
{section name=yearValue start=$thisyear-20 loop=$endYear step=1}
{if $smarty.section.yearValue.index == 2014}
	<option selected = "selected">{$smarty.section.yearValue.index}</option>
{else}
	<option>{$smarty.section.yearValue.index}</option>
{/if}
{/section}
</select>
<br>

{if $CN_SecDetail=="CN_TMTG"}
<table>
<tr>
	<td><input type="radio" name="ChiTiet" value="TTM" checked="checked"> </td>
	<td><label for="ChiTiet">Phi&#7871;u thu ti&#7873;n m&#7863;t </label></td>
</tr>
<tr>

	<td><input type="radio" name="ChiTiet" value="CTM" >
	<td><label for="ChiTiet">Phi&#7871;u chi ti&#7873;n m&#7863;t </label>
</tr>

<tr>
	<td><input type="radio" name="ChiTiet" value="TTG" >
	<td><label for="ChiTietN">Thu ti&#7873;n ng&#226;n h&#224;ng</label>
	</tr>
<tr>
	<td><input type="radio" name="ChiTiet" value="CTG" >
	<td><label for="ChiTiet">Chi ti&#7873;n ng&#226;n h&#224;ng</label>
	</tr>
	<tr>
	<td colspan="2">

	<a class="action" href="javascript:openHelp('{$newurl}')">Th&#7921;c hi&#7879;n</a>
	</td>
	</tr>

	<tr>
		<td colspan="2"><input type="submit" id="formsubmit"  value="Th&#7921;c hi&#7879;n" class="button" /></td>
	</tr>
</table>

		

{elseif $CN_SecDetail=="CN_BANHANGCNO"}
	Ho&#225; &#273;&#417;n b&#225;n h&#224;ng
			<br>
	Ho&#225; &#273;&#417;n d&#7883;ch v&#7909; ph&#7843;i thu
			<br>
	B&#249; tr&#7915; c&#244;ng n&#7907;
			<br>
	Phi&#7871;u nh&#7853;p h&#224;ng ho&#225; b&#7883; tr&#7843; l&#7841;i
			<br>
	Ho&#225; &#273;&#417;n ki&#234;m v&#7853;n chuy&#7875;n n&#7897;i b&#7897;
			<br>
	Ho&#225; &#273;&#417;n xu&#7845;t kh&#7849;u

{elseif $CN_SecDetail=="CN_MUAHANGCNO"}
	Phi&#7871;u nh&#7853;p mua
			<br>
	Phi&#7871;u nh&#7853;p kh&#7849;u
			<br>
	Phi&#234;u nh&#7853;p chi ph&#237; mua h&#224;ng
			<br>
	Phi&#7871;u thanh to&#225;n t&#7841;m &#7913;ng
			<br>
	Phi&#7871;u nh&#7853;p xu&#7845;t th&#7859;ng
			<br>
	Phi&#7871;u xu&#7845;t tr&#7843; l&#7841;i nh&#224; cung c&#7845;p

{/if}
</form>


{if $enableAnnouncementsHomepage}
{* Display announcements *}
<div id="announcementsHome">
	<h3>{translate key="announcement.announcementsHome"}</h3>
	{include file="announcement/list.tpl"}	
	<table class="announcementsMore">
		<tr>
			<td><a href="{url page="announcement"}">{translate key="announcement.moreAnnouncements"}</a></td>
		</tr>
	</table>
</div>
{/if}

{if $issue && $currentJournal->getSetting('publishingMode') != $smarty.const.PUBLISHING_MODE_NONE}
	{* Display the table of contents or cover page of the current issue. *}
	<br />
	<h3>{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</h3>
	{include file="issue/view.tpl"}
{/if}
{include file="common/footer.tpl"}




